package com.taocyb.commons.uc.entity;

import java.io.Serializable;
import java.util.Date;

import com.taocyb.constant.EnableStatus;
import com.taocyb.constant.ShopType;

/**
 * 卖家
 */
public class Seller implements Serializable {
	private static final long serialVersionUID = -4922626175947419534L;

	private Long id; 			// 主键ID
	private Long userId; 		// 用户ID
	private String loginName; 	// 登陆账号
	private String sellerName; 	// 卖家名称(淘宝:阿里旺旺名, 拍拍:QQ号码)
	private Integer shopType; 	// 店铺类型
	private Integer level; 		// 卖家信用
	private Integer status; 	// 状态
	private Date createTime; 	// 创建时间
	private Date updateTime; 	// 修改时间

	private transient ShopType sellerShopType; 		// 店铺类型
	private transient EnableStatus sellerStatus; 	// 卖家状态

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getSellerName() {
		return sellerName;
	}

	public void setSellerName(String sellerName) {
		this.sellerName = sellerName;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getShopType() {
		return shopType;
	}

	public void setShopType(Integer shopType) {
		this.shopType = shopType;
		this.sellerShopType = ShopType.getEnum(shopType);
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
		this.sellerStatus = EnableStatus.getEnum(status);
	}

	public ShopType getSellerShopType() {
		return sellerShopType;
	}

	public void setSellerShopType(ShopType sellerShopType) {
		this.sellerShopType = sellerShopType;
	}

	public EnableStatus getSellerStatus() {
		return sellerStatus;
	}

	public void setSellerStatus(EnableStatus sellerStatus) {
		this.sellerStatus = sellerStatus;
	}

}
